import { CommentGetResultModel } from './model/commentModel'
import { defHttp } from '/@/utils/http/axios'
const prefix = '/service.comment/'
// api接口列表
enum Api {
  list = 'list',
  detail = 'detail',
}

/**
 * 获取列表
 * @param {*} params
 */
export const list = (params) => defHttp.get<CommentGetResultModel>({ url: prefix + Api.list, params })

/**
 * 获取单条记录信息
 * @param {*} params
 */
export const detail = (params) => defHttp.get<CommentGetResultModel>({ url: prefix + Api.detail, params })
